package part3.c19_emp.dao;



import part3.c19_emp.employee.Employee;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lie Created in 2018/3/29
 * 模拟数据库存储
 * 这里用map来存添加的雇员
 */
public class GPayrollDatabase extends PayrollDatabase{

    public Employee getEmployee(int empId){
        return employeeMap.get(empId);
    }

    public void addEmployee(int empId, Employee e){
        employeeMap.put(empId, e);
    }

//    public static void addEmployee(int empId, Employee e){
//        employeeMap.put(empId, e);
//    }
}
